package gov.pbc.nn.kjgl.maintenance.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 系统密码（服务器密码，管理员密码）
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "T_SYS_PWD")
public class SysPwd extends BaseEntity {

	private static final long serialVersionUID = -5118561995553141980L;

	@Column(name = "SYS_ID_", length = 60)
	private String sysId;
	@Column(name = "SYS_NAME_", length = 120)
	@PropertyDef(label = "系统名称")
	private String sysName;
	@Column(name = "SERVER_", length = 120)
	@PropertyDef(label = "服务器")
	private String server;
	@Column(name = "USER_", length = 60)
	@PropertyDef(label = "人员")
	private String user;
	@Column(name = "TYPE_")
	@PropertyDef(label = "密码类型", description = "0：服务器密码；1：管理员密码")
	private int type;
	@Column(name = "MODIFY_DATE_")
	@PropertyDef(label = "修改时间")
	private Date modifyDate;
	@Column(name = "PWD_TEXT_", length = 30)
	@PropertyDef(label = "明文密码")
	private String pwdText;
	@Column(name = "MD5_TEXT_", length = 60)
	@PropertyDef(label = "加密密码")
	private String md5Text;
	@Column(name = "CLCLE_")
	@PropertyDef(label = "密码更新周期")
	private int cycle;
	
	@Column(name = "BACK_SERVER_", length = 120)
	@PropertyDef(label = "备用服务器")
	private String backServer;
	
	@Column(name = "BACK_PWD_TEXT_", length = 30)
	@PropertyDef(label = "备用明文密码")
	private String backPwdText;
	
	

	public String getBackServer() {
		return backServer;
	}

	public void setBackServer(String backServer) {
		this.backServer = backServer;
	}


	public String getBackPwdText() {
		return backPwdText;
	}

	public void setBackPwdText(String backPwdText) {
		this.backPwdText = backPwdText;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getSysName() {
		return sysName;
	}

	public void setSysName(String sysName) {
		this.sysName = sysName;
	}

	public String getServer() {
		return server;
	}

	public void setServer(String server) {
		this.server = server;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getPwdText() {
		return pwdText;
	}

	public void setPwdText(String pwdText) {
		this.pwdText = pwdText;
	}

	public String getMd5Text() {
		return md5Text;
	}

	public void setMd5Text(String md5Text) {
		this.md5Text = md5Text;
	}

	public int getCycle() {
		return cycle;
	}

	public void setCycle(int cycle) {
		this.cycle = cycle;
	}

}
